home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Jan 30, 1996
- // Author: ms
- //
- // Description:
- // This proc fills the scriptTool tool property sheet with values.
- // See also scriptToolProperties.mel
- //
- // Input Arguments:
- // $toolName - this is the name of the instance of the tool
- // that the property sheet is modifying.
- //
- // Return Value:
- // None.
- //
- //
- //
- //
-
- global proc scriptToolValues( string $toolName )
- //
- // Description:
- // Sets the state of the property sheet based on the values
- // in the tool context.
- //
- {
- // set my top layout to be the current $parent
- //
- string $parent = (`toolPropertyWindow -q -location` + "|scriptTool");
- setParent $parent;
-
- string $title = `scriptCtx -q -title $toolName`;
- string $finalCommandScript = `scriptCtx -q -finalCommandScript $toolName`;
- int $cumulativeLists = `scriptCtx -q -cumulativeLists $toolName`;
- int $expandSelectionList = `scriptCtx -q -expandSelectionList $toolName`;
- int $showManipulators = `scriptCtx -q -showManipulators $toolName`;
- int $exitUponCompletion = `scriptCtx -q -exitUponCompletion $toolName`;
- int $showRootSelection = `scriptCtx -q -enableRootSelection $toolName`;
-
- textFieldGrp -e -text $title titleWidget;
- textFieldGrp -e -text $finalCommandScript finalCommandScriptWidget;
-
- checkBoxGrp -e -v1 $cumulativeLists cumulativeListsWidget;
- checkBoxGrp -e -v1 $expandSelectionList expandSelectionListWidget;
- checkBoxGrp -e -v1 $exitUponCompletion exitUponCompletionWidget;
- checkBoxGrp -e -v1 $showRootSelection showRootSelectWidget;
-
- // set property sheet label and icon
- //
- string $helpTag = "";
- toolPropertySetCommon $toolName "scriptCtx.xpm" $helpTag;
- toolPropertySelect scriptTool;
- }
-